# name : gsDesign simBinomial 2arm
# key : gsDesign.simBinomial.2arm
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# contributor: Shuguang Sun
# --
simBinomial(
  # Miettinen and Nurminen (1980) Z- or Chi-square-statistic
  p1 = ${1:0.1}, # group 1
  p2 = ${2:0.2}, # group 2
  n1 = ${3:10},
  n2 = ${4:10},
  delta0 = ${5:0},
  nsim = ${9:10000},
  chisq = ${6:0},  # chi-square or Z
  adj = ${7:0},    # if 1, continuous adj for var
  scale = ${8:$$(yas-choose-value '("Difference" "RR" "OR"))}
)
